{{each list as value index}}
    <div class="panel panel-default">
        <div class="panel-heading" role="tab" id="{{value.pid}}">
            <h4 class="panel-title">
                <a role="button" data-toggle="collapse" data-parent="#{{collapseId}}" href="#{{value.id}}" aria-expanded="true" aria-controls="{{value.id}}">
                    {{value.title}}
                </a>
                {{if value.delete}}
                    <a role="button collapse-title-button" data-action="delete" style="float: right; cursor: pointer">删除</a>
                {{/if}}
            </h4>
        </div>
        <div id="{{value.id}}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="{{value.pid}}">
            <div class="panel-body">
                {{#value.body}}
            </div>
        </div>  
    </div>
{{/each}}